home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group92c.txt / 000040_icon-group-sender _Wed Oct 28 09:42:25 1992.msg < prev    next >
Internet Message Format  |  1993-01-04  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Wed, 28 Oct 1992 09:45:47 MST
  2. Date: Wed, 28 Oct 1992 09:42:25 MST
  3. From: "Ralph Griswold" <ralph>
  4. Message-Id: <199210281642.AA24982@cheltenham.cs.arizona.edu>
  5. To: icon-group
  6. Subject: semicolons
  7. Status: R
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10. I normally stay out of "discussions" like this, but I can't resist
  11. remarking that, in practice, the semicolon insertion performed
  12. by the Icon translator works well in practice, programmers like it,
  13. it's been touted as one of the nice little touches that makes
  14. Icon a pleasure to use, and I don't recall a single complaint
  15. about the feature from a practicing Icon programmer (once they
  16. understand it).
  17.  
  18. The wisdom on idiomatic Icon programming is that semicolons should
  19. never appear (syntactically) in Icon programs.
  20.  
  21. If you want to argue syntax, what semicolon insertion does is
  22. give line terminators syntactic significance.  In most programs,
  23. an Icon programmer thinks of a newline (or whatever your favorite
  24. platform uses to terminate lines) in the same way programmers
  25. in languages with similar syntax think of semicolons.
  26.     
  27. Ralph E. Griswold            ralph@cs.arizona.edu
  28. Department of Computer Science          uunet!arizona!ralph
  29. The University of Arizona        602-621-6609 (voice)
  30. Tucson, AZ 85721            602-621-9618   (fax)
  31.